API Documentation
ResourceManager.h
1 // ResourceManager.h
3 //
5 
6 namespace nkResources
7 {
22  class ResourceManager final : public nkCommon::SingletonClass<ResourceManager>
23  {
24  public :
25 
26  // About working path
32  void setWorkingPath (const nkMemory::StringView& path) ;
47 
48  // Launch path
59 
60  // Translations
109 
110  // Check folders
118  bool checkFileExists (const nkMemory::StringView& filePathAbs) const ;
127 
128  // Loading
137  nkMemory::Buffer loadFileIntoMemory (const nkMemory::StringView& filePathAbs, bool silent = false) ;
138  } ;
139 }
nkResources::ResourceManager::checkFolderExists
void checkFolderExists(nkMemory::String path)
nkResources::ResourceManager::getFromWorkingDirFromAbsolute
nkMemory::String getFromWorkingDirFromAbsolute(const nkMemory::StringView &absolutePath) const
nkResources::ResourceManager::getLaunchedPath
nkMemory::String getLaunchedPath() const
nkResources::ResourceManager::loadFileIntoMemory
nkMemory::Buffer loadFileIntoMemory(const nkMemory::StringView &filePathAbs, bool silent=false)
nkResources::ResourceManager
Manager helping with path finding and resource loading.
Definition: ResourceManager.h:23
nkResources::ResourceManager::checkFileExists
bool checkFileExists(const nkMemory::StringView &filePathAbs) const
nkResources::ResourceManager::getRelativeFromWorkingDir
nkMemory::String getRelativeFromWorkingDir(const nkMemory::StringView &workingPath) const
nkMemory::Buffer
A buffer holding binary data.
Definition: Buffer.h:32
nkResources::ResourceManager::setLaunchedPath
void setLaunchedPath(const nkMemory::StringView &path)
nkResources::ResourceManager::getAbsoluteFromWorkingDir
nkMemory::String getAbsoluteFromWorkingDir(const nkMemory::StringView &workingPath) const
nkResources::ResourceManager::getAbsoluteFromRelative
nkMemory::String getAbsoluteFromRelative(const nkMemory::StringView &relativePath) const
nkResources::ResourceManager::setWorkingPath
void setWorkingPath(const nkMemory::StringView &path)
nkMemory::String
Class holding information about a string, with ownership over the data.
Definition: String.h:22
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkResources::ResourceManager::getRelativeFromAbsolute
nkMemory::String getRelativeFromAbsolute(const nkMemory::StringView &absolutePath) const
nkResources::ResourceManager::getWorkingPath
nkMemory::String getWorkingPath() const
nkResources::ResourceManager::getFromWorkingDirFromRelative
nkMemory::String getFromWorkingDirFromRelative(const nkMemory::StringView &relativePath) const
nkResources::ResourceManager::getWorkingPathAbsolute
nkMemory::String getWorkingPathAbsolute() const
nkResources::ResourceManager::setWorkingPathAbsolute
void setWorkingPathAbsolute(const nkMemory::StringView &path)
nkResources
Encompasses all API of component NilkinsResources.
Definition: LogManager.h:7